package com.hn.birthdaymatch.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hn.birthdaymatch.model.Birthday;
import com.hn.birthdaymatch.result.PageResult;
import com.hn.birthdaymatch.result.Result;

import java.util.Map;

public interface BirthdayService extends IService<Birthday>{

    /**
     * 用户列表
     * @param params
     * @return
     */
    PageResult<Birthday> findList(Map<String, Object> params);

    /**
     * 保存或者修改
     * @param birthday
     * @return
     */
    Result saveOrUpdateRole(Birthday birthday);

    /**
     * 校验唯一标识
     * @param birthday
     * @return
     */
    Result verifyUniIdentification(Birthday birthday);

    /**
     * 删除
     * @param params
     * @return
     */
    Result deleteBirthday(Map<String, Object> params);
}
